﻿
using OnlineCourse.Model.Entity;
using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineCourse.Services.IServices
{
    public interface IAdvertisingServices
    {
        /// <summary>
        /// 广告查询
        /// </summary>
        /// <param name="total"></param>
        /// <param name="page"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        IList<Advertising> GetList(int i);
        /// <summary>
        /// 增加广告
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Add(string imagePath, string url);
        /// <summary>
        /// 修改广告
        /// </summary>
        /// <param name="id"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        bool Update(Guid id, string imagePath,string url);
        /// <summary>
        /// 删除广告
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool Delete(Guid id);
        
    }
}
